package com.qijian.maindata.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * 开工令项目进度对象 main_project_process
 *
 * @author qijian
 * @date 2023-11-21
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_project_process")
public class ProjectProcess extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @TableId
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "开工令id 组件")
    private Long projectId;

    @Excel(name = "工艺进度(10%)")
    @ApiModelProperty(value = "工艺进度(10%)")
    private BigDecimal bomRate;

    @Excel(name = "工艺-材料进度")
    @ApiModelProperty(value = "工艺-材料进度")
    private Integer materialRate;

    @Excel(name = "核算进度(10%)")
    @ApiModelProperty(value = "核算进度(10%)")
    private BigDecimal budgetRate;

    @Excel(name = "采购进度(10%)")
    @ApiModelProperty(value = "采购进度(10%)")
    private BigDecimal purchaseRate;

    @Excel(name = "生产进度(60%)")
    @ApiModelProperty(value = "生产进度(60%)")
    private BigDecimal processRate;

    @Excel(name = "检验进度(10%)")
    @ApiModelProperty(value = "检验进度(10%)")
    private BigDecimal qualityRate;

    @Excel(name = "实际检验进度(10%)")
    @ApiModelProperty(value = "实际检验进度(10%)")
    private BigDecimal actualQualityRate;

    @Excel(name = "最终进度")
    @ApiModelProperty(value = "最终进度")
    private BigDecimal projectRate;

    @Excel(name = "bom状态")
    @ApiModelProperty(value = "bom状态")
    private String bomStatus;

    private Long version;

}
